//package cn.jorian.framework.filter;
//
//
//import cn.jorian.framework.bean.ResponseResult;
//import org.springframework.http.HttpStatus;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.ResponseStatus;
//import org.springframework.web.bind.annotation.RestControllerAdvice;
//
//@RestControllerAdvice
//public class RestExceptionHandler {
//
//    @ExceptionHandler(Exception.class)
////    @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
//    public ResponseResult<String> handleException(Exception e) {
////        log.error("全局异常信息 ex={}", e.getMessage(), e);
//        ResponseResult<String> result = new ResponseResult<>();
//        result.setCode(500);
//        result.setMsg(e.getMessage());
//        return result;
//    }
//}
